﻿using System;
using UnityEngine;

/// <summary>
/// 提供确定性得数学库
/// </summary>
public static class DemoMathf
{
    static float tOffset = 0;
    public static Vector2 GetVec()
    {
        tOffset += 0.05f;
        tOffset = tOffset % 1;
        float x = Mathf.Lerp(-4.25f, 4.41f, tOffset);
        float y = Mathf.Lerp(-4.22f, 4.32f, tOffset);
        return new Vector2(x, -y);
    }
}

